from tkinter import *

root=Tk()
root.geometry("500x500")

n=int(input())

canvas = Canvas(bg="yellow", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_rectangle(10 * n, 20 * n, 40 * n, 50 * n, fill="red", outline="black")

canvas.create_rectangle(10 * n, 50 * n, 40 * n, 80 * n, fill="red", outline="black")

canvas.create_rectangle(40 * n, 50 * n, 70 * n, 80 * n, fill="red", outline="black")

canvas.create_rectangle(40 * n, 80 * n, 70 * n, 110 * n, fill="red", outline="black")

root.mainloop()